{% if pageData["auth"] %}
        <div id="box">&nbsp;&nbsp;Benvenuto: {{ pageData["USER"].username or "Guest" }}
        &nbsp;&nbsp;Ruolo:{{pageData["role"]}}
        {% if pageData["role"] == "Admin" %}
        <a href="/main" class="login">PG-WEB</a>
        {% else %}
            <a href="/{{pageData['subdomain'].template or ''}}/userDetail" class="login">Modifica dati</a>
        {% if "liente" in pageData["USER"].ruolo or "rtner" in pageData["USER"].ruolo %}
           <a href="/{{pageData['subdomain'].template or ''}}/userClientInfo" class="login">Dati utente</a>
        {% endif %}
               {% if "rtner" in pageData["USER"].ruolo %}
            <a href="/{{pageData['subdomain'].template or ''}}/userPartnerInfo?edit=True" class="login">Dati Azienda Partner</a>
        {% endif %}
        {% endif %}
        <a href="/logout" class="login">Logout</a></div>
 {% else %}
<a href="/prelogin" class="login">LOGIN</a> O <a href="/userRegistration" class="login"> REGISTRATI</a>
    {% endif %}
